////////////////////////////////////////////////////////////////////////////////
// Copyright 2005 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   SO
// AUTHOR           :   Victor.zheng 
// DATE CREATE      :   2005/10/25
// DESCRIPTION      :   a SCHEMA file for the function, SO
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2005/10/25   Victor.zheng    1.0                 source is generated.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.app.login.taskEnquiry.schema;

import com.erp.framework.model.schema.MetaData;
import com.erp.framework.model.schema.TableSchema;

/**
* <p>A <strong>Schema</strong> stores the table meta information.
* The main purpose for this class is to validate the lengths of UniCode Characters,
* and notify the database to store UniCode characters from web browsers.
*
* @author          Victor.zheng 
* @version 1.0     2005/10/25
* @since           FrameWork 1.0
*
*/
public class TaskEnquirySchema extends TableSchema {

	public static final String TABLE_NAME = "T_SO_HDR";

	public TaskEnquirySchema(){

		MetaData md = null;

		md = new MetaData();
		md.setColumnName("COMPANY_CODE");
		md.setVoPropertyName("companyCode");
		md.setColumnTitle("COMPANY_CODE");
		md.setColumnTypeName("VARCHAR2");
		md.setColumnType(12);
		md.setColumnSize(30);
		md.setColumnCatalogName("");
		md.setColumnClassName("java.lang.String");
		md.setColumnPrecision(30);
		md.setColumnScale(0);
		md.setDisplaySize(30);
		md.setIsNullable(0);
		ts.add(md);

		md = new MetaData();
		md.setColumnName("PROJ_NO");
		md.setVoPropertyName("projNo");
		md.setColumnTitle("PROJ_NO");
		md.setColumnTypeName("VARCHAR2");
		md.setColumnType(12);
		md.setColumnSize(30);
		md.setColumnCatalogName("");
		md.setColumnClassName("java.lang.String");
		md.setColumnPrecision(30);
		md.setColumnScale(0);
		md.setDisplaySize(30);
		md.setIsNullable(0);
		ts.add(md);
		
		md = new MetaData();
		md.setColumnName("LINE_NO");
		md.setVoPropertyName("lineNo");
		md.setColumnTitle("LINE_NO");
		md.setColumnTypeName("VARCHAR2");
		md.setColumnType(12);
		md.setColumnSize(30);
		md.setColumnCatalogName("");
		md.setColumnClassName("java.lang.String");
		md.setColumnPrecision(30);
		md.setColumnScale(0);
		md.setDisplaySize(30);
		md.setIsNullable(0);
		ts.add(md);

		
		md = new MetaData();
		md.setColumnName("TASK_LINE_NO");
		md.setVoPropertyName("taskLineNo");
		md.setColumnTitle("TASK_LINE_NO");
		md.setColumnTypeName("VARCHAR2");
		md.setColumnType(12);
		md.setColumnSize(30);
		md.setColumnCatalogName("");
		md.setColumnClassName("java.lang.String");
		md.setColumnPrecision(30);
		md.setColumnScale(0);
		md.setDisplaySize(30);
		md.setIsNullable(0);
		ts.add(md);
		
		md = new MetaData();
		md.setColumnName("DATE_COMPARE_STATUS");
		md.setVoPropertyName("dateCompareStatus");
		md.setColumnTitle("DATE_COMPARE_STATUS");
		md.setColumnTypeName("VARCHAR2");
		md.setColumnType(12);
		md.setColumnSize(30);
		md.setColumnCatalogName("");
		md.setColumnClassName("java.lang.String");
		md.setColumnPrecision(30);
		md.setColumnScale(0);
		md.setDisplaySize(30);
		md.setIsNullable(0);
		ts.add(md);
		
		
		md = new MetaData();
		md.setColumnName("TASK_DESC");
		md.setVoPropertyName("taskDesc");
		md.setColumnTitle("TASK_DESC");
		md.setColumnTypeName("VARCHAR2");
		md.setColumnType(12);
		md.setColumnSize(2000);
		md.setColumnCatalogName("");
		md.setColumnClassName("java.lang.String");
		md.setColumnPrecision(30);
		md.setColumnScale(0);
		md.setDisplaySize(30);
		md.setIsNullable(0);
		ts.add(md);
		
		md = new MetaData();
		md.setColumnName("TASK_TYPE");
		md.setVoPropertyName("taskType");
		md.setColumnTitle("TASK_TYPE");
		md.setColumnTypeName("VARCHAR2");
		md.setColumnType(12);
		md.setColumnSize(30);
		md.setColumnCatalogName("");
		md.setColumnClassName("java.lang.String");
		md.setColumnPrecision(30);
		md.setColumnScale(0);
		md.setDisplaySize(30);
		md.setIsNullable(0);
		ts.add(md);


		md = new MetaData();
		md.setColumnName("APPROVE_DATE");
		md.setVoPropertyName("approveDate");
		md.setColumnTitle("APPROVE_DATE");
		md.setColumnTypeName("DATE");
		md.setColumnType(91);
		md.setColumnSize(15);
		md.setColumnCatalogName("");
		md.setColumnClassName("com.erp.framework.types.CustomSqlDate");
		md.setColumnPrecision(0);
		md.setColumnScale(0);
		md.setDisplaySize(7);
		md.setIsNullable(1);
		ts.add(md);

		

	}

}